import Layout from '@/layout';

const houseRouter = {
  path: '/house',
  component: Layout,
  redirect: '/house/list',
  name: 'House',
  meta: { title: '房源管理', icon: 'house' },
  children: [
    {
      path: 'list',
      name: 'HouseList',
      component: () => import('@/views/house/list'),
      meta: { title: '房源列表', icon: 'list' }
    },
    {
      path: 'create',
      name: 'HouseCreate',
      component: () => import('@/views/house/form'),
      meta: { title: '添加房源', icon: 'add' }
    },
    {
      path: 'edit/:id',
      name: 'HouseEdit',
      component: () => import('@/views/house/form'),
      meta: { title: '修改房源', noCache: true },
      hidden: true
    }
  ]
};

export default houseRouter;
